package com.example.day21;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @author Lenovo
 */
public class ClientDemo {
    public static void main(String[] args) throws IOException {
        Socket s = new Socket("127.0.0.1", 10000);
        OutputStream os = s.getOutputStream();
        os.write("hello".getBytes());
        s.close();
    }
}

